package com.yix.admin.modules.system.entity.query;

import com.yix.common.annotation.Query;
import lombok.Data;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

/**
 * @author wdx
 * @version 1.0
 * @Description TODO
 * @date 2021/2/5 11:14
 */
@Data
public class SysUserQuery {

    @Query
    private String id;

    @Query(propName = "id", type = Query.Type.IN, joinName = "dept")
    private Set<String> deptIds = new HashSet<>();

    @Query(blurry = "email,username,nickName")
    private String blurry;

    @Query
    private Boolean enabled;

    private String deptId;

    @Query(type = Query.Type.BETWEEN)
    private List<Timestamp> createTime;
}
